/*
 * @Author: tomystery 
 * @Date: 2018-05-10 17:05:03 
 * @Last Modified by: t
 * @Last Modified time: 2018-07-13 10:49:03
 */
import React from 'react'


class PageTitle extends React.Component {
    constructor(props) {
        super(props)
    }
    componentWillMount(){
        document.title=this.props.title+'-HAPPY MMALL'
    }
    render() {
        return (
            <div className='row'>
                <div className='col-md-12'>
                    <h1 className='page-header'>{this.props.title}</h1>
                    {this.props.children}
                </div>
            </div>
        )
    }
}

export default PageTitle